<div class = "ui modal">
    <i class = "close icon"></i>
    <div class = "header">
        {{config.title}}
    </div>

    <!--1.型号监控-->
    <div ng-if = "config.index ==1" class = "clearfix p15">
        <form class = "ui form bc perW80">
            <div class = "field">
                <label>产品名称</label>
                <div class = "mt10">
                    <input type = "text" name = "first-name" placeholder = "产品型号" ng-model = "config.model">
                </div>
            </div>
            <div class = "field">
                <label>标题关键字</label>
                <div class = "mt10">
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.keywords[0]">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.keywords[1]">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.keywords[2]">
                        </div>
                    </div>
                </div>
            </div>
            <!--<div class = "field">-->
            <!--<label>排除关键字</label>-->
            <!--<div class = "mt10">-->
            <!--<div class = "inline fields">-->
            <!--<div class = "field">-->
            <!--<input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.delkeywords[0]">-->
            <!--</div>-->
            <!--<div class = "field">-->
            <!--<input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.delkeywords[1]">-->
            <!--</div>-->
            <!--</div>-->
            <!--</div>-->
            <!--</div>-->
            <!--common-->
            <div class = "field">
                <label>价格设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">标准价格区间</div>
                        <div class = "menu">
                            <div class = "item" dataType = "价格设置" data-value = "标准价格区间">标准价格区间</div>
                            <div class = "item" dataType = "价格设置" data-value = "价格下限">价格下限</div>
                            <div class = "item" dataType = "价格设置" data-value = "价格上限">价格上限</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field" id = "priceHigh" ng-show = 'config.priceSet=="价格下限" || config.priceSet=="标准价格区间" || config.priceSet==null'>
                            <input type = "text" placeholder = "下限" style = "width:80px;" ng-model = "config.price_low">
                        </div>
                        <div class = "field" id = "priceLow" ng-show = 'config.priceSet=="价格上限" || config.priceSet=="标准价格区间" || config.priceSet==null'>
                            <input type = "text" placeholder = "上限" style = "width:80px;" ng-model = "config.price_hig">
                        </div>
                        <b class = "mr10">预警低价:</b>
                        <div class = "field ml10">
                            <input type = "text" placeholder = "" style = "width:80px;">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>标准上市时期</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">标准上市时期</div>
                        <div class = "menu">
                            <div class = "item" dataType = "价格设置" data-value = "标准价格区间">标准价格区间</div>
                            <div class = "item" dataType = "价格设置" data-value = "价格下限">价格下限</div>
                            <div class = "item" dataType = "价格设置" data-value = "价格上限">价格上限</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field" id = "">
                            <input type = "text" placeholder = "下限" style = "width:80px;">
                        </div>
                        <div class = "field" id = "">
                            <input type = "text" placeholder = "上限" style = "width:80px;">
                        </div>
                        <b class = "mr10">预警时间:</b>
                        <div class = "field ml10">
                            <input type = "text" placeholder = "" style = "width:80px;">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>标准产地</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">标准产地</div>
                        <div class = "menu">
                            <div class = "item" dataType = "价格设置" data-value = "标准价格区间">标准单一产地</div>
                            <div class = "item" dataType = "价格设置" data-value = "价格下限">标准多产地</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field" id = "">
                            <input type = "text" placeholder = "地名" style = "width:120px;">
                        </div>
                        <!--<div class = "field" id = "">
                            <input type = "text" placeholder = "上限" style = "width:80px;" ng-model = "">
                        </div>-->
                        <b class = "mr10">冒用地名:</b>
                        <div class = "field ml10">
                            <input type = "text" placeholder = "" style = "width:80px;">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>认证品牌</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">认证品牌</div>
                        <div class = "menu">
                            <div class = "item" dataType = "价格设置" data-value = "标准价格区间">认证单一品牌</div>
                            <div class = "item" dataType = "价格设置" data-value = "价格下限">认证多品牌</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field" id = "">
                            <input type = "text" placeholder = "地名" style = "width:120px;">
                        </div>
                        <!--<div class = "field" id = "">
                            <input type = "text" placeholder = "上限" style = "width:80px;" ng-model = "">
                        </div>-->
                        <!--<b class = "mr10">预警时间:</b>
                        <div class = "field ml10">
                            <input type = "text" placeholder = "" style = "width:80px;" ng-model = "">
                        </div>-->
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取频率设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">每天抓取</div>
                        <div class = "menu">
                            <div class = "item" dataType = "抓取频率设置" data-value = "每天抓取">每天抓取</div>
                            <div class = "item" dataType = "抓取频率设置" data-value = "每周抓取">每周抓取</div>
                            <div class = "item" dataType = "抓取频率设置" data-value = "每月抓取">每月抓取</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "" style = "width:70px;" ng-model = "config.time">
                            <span>次</span>
                        </div>
                    </div>
                </div>
            </div>
            <!--            <div class = "field">
                            <label>抓取时间设置</label>
                            <div class = "mt10">
                                <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                                    <input type = "hidden" name = "gender">
                                    <i class = "dropdown icon"></i>
                                    <div class = "default text">平均分配时间</div>
                                    <div class = "menu">
                                        <div class = "item" dataType = "抓取时间设置" data-value = "平均分配时间">平均分配时间</div>
                                        <div class = "item" dataType = "抓取时间设置" data-value = "自定义时间">自定义时间</div>
                                    </div>
                                </div>
                                <div class = "inline fields" ng-show = 'config.dateSet=="自定义时间"'>
                                    <div class = "field">
                                        <select id = "dateValue">
                                            <option value = "星期一">星期一</option>
                                            <option value = "星期二">星期二</option>
                                            <option value = "星期三">星期三</option>
                                            <option value = "星期四">星期四</option>
                                            <option value = "星期五">星期五</option>
                                            <option value = "星期六">星期六</option>
                                            <option value = "星期日">星期日</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>-->
            <div class = "field">
                <div class = "ui toggle red checkbox openMonitor mt10">
                    <input type = "checkbox" id = "checkInput1" tabindex = "0" class = "hidden" ng-model = "config.switch">
                    <label for = "checkInput1" style = "cursor: pointer;">开启价格监控</label>
                </div>
            </div>
        </form>

        <!--<div class = "fl perW50 pl10">
            <table class = "ui very basic collapsing  table ml20">
                <thead></thead>
                <tbody>
                    <tr>
                        <td>
                            <div class = "ui form">
                                <div class = "inline fields">
                                    <div class = "field">
                                        <input type = "radio" name = "tyui">
                                        <label style = "">一天抓取</label>
                                        <input type = "text" placeholder = "" style = "width:100px;">
                                        <label>次</label>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class = "ui form">
                                <div class = "inline fields">
                                    <label>抓取时间分配:</label>
                                    <div class = "field">
                                        <div class = "ui radio checkbox">
                                            <input type = "radio" name = "frequency">
                                            <label>平均分配时间</label>
                                        </div>
                                    </div>
                                    <div class = "field">
                                        <div class = "ui radio checkbox">
                                            <input type = "radio" name = "frequency">
                                            <label>我自己指定时间</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class = "ui form">
                                <div class = "inline fields">
                                    <div class = "field">
                                        <input type = "radio" name = "tyui">
                                        <label style = "">一周抓取</label>
                                        <input type = "text" placeholder = "" style = "width:100px;">
                                        <label>次</label>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class = "ui form">
                                <div class = "inline fields">
                                    <label>抓取时间分配:</label>
                                    <div class = "field">
                                        <div class = "ui radio checkbox">
                                            <input type = "radio" name = "frequency1">
                                            <label>平均分配时间</label>
                                        </div>
                                    </div>
                                    <div class = "field">
                                        <div class = "ui radio checkbox">
                                            <input type = "radio" name = "frequency1">
                                            <label>我自己指定时间</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class = "ui form">
                                <div class = "inline fields">
                                    <div class = "field">
                                        <input type = "radio" name = "tyui">
                                        <label style = "">一月抓取</label>
                                        <input type = "text" placeholder = "" style = "width:100px;">
                                        <label>次</label>
                                    </div>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class = "ui form">
                                <div class = "inline fields">
                                    <label>抓取时间分配:</label>
                                    <div class = "field">
                                        <div class = "ui radio checkbox">
                                            <input type = "radio" name = "frequency2">
                                            <label>平均分配时间</label>
                                        </div>
                                    </div>
                                    <div class = "field">
                                        <div class = "ui radio checkbox">
                                            <input type = "radio" name = "frequency2">
                                            <label>我自己指定时间</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>-->
    </div>

    <!--2.链接监控-->
    <div ng-if = "config.index==2" class = "clearfix p15">
        <form class = "ui form bc perW50">
            <div class = "field">
                <label>产品链接</label>
                <div class = "mt10">
                    <input type = "text" name = "first-name" placeholder = "产品链接" ng-model = "config.model">
                </div>
            </div>
            <div class = "field">
                <label>价格设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">标准价格区间</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">价格下限</div>
                            <div class = "item" data-value = "0">价格上限</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "价格下限" style = "width:135px;" ng-model = "config.price_low">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "价格上限" style = "width:135px;" ng-model = "config.price_hig">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取频率设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">每天抓取</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">每周抓取</div>
                            <div class = "item" data-value = "0">每月抓取</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "" style = "width:70px;" ng-model = "config.time">
                            <span>次</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取时间设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">平均分配时间</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">平均分配时间</div>
                            <div class = "item" data-value = "0">自定义时间</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <div class = "ui toggle red checkbox openMonitor mt10">
                    <input type = "checkbox" id = "checkInput2" tabindex = "0" class = "hidden" ng-model = "config.switch">
                    <label for = "checkInput2" style = "cursor: pointer;">开启价格监控</label>
                </div>
            </div>
        </form>
    </div>

    <!--3.品牌监控-->
    <div ng-if = "config.index==3" class = "clearfix p15">
        <form class = "ui form bc perW50">
            <div class = "field">
                <label>产品链接地址</label>
                <div class = "mt10">
                    <input type = "text" name = "first-name" placeholder = "产品url链接地址" ng-model = "config.model">
                </div>
            </div>
            <!--common-->
            <div class = "field">
                <label>价格设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">标准价格区间</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">价格下限</div>
                            <div class = "item" data-value = "0">价格上限</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "价格下限" style = "width:135px;" ng-model = "config.price_low">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "价格上限" style = "width:135px;" ng-model = "config.price_hig">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取频率设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender" ng-model = "config.zqcs">
                        <i class = "dropdown icon"></i>
                        <div class = "default text" value = "每天抓取">每天抓取</div>
                        <div class = "menu">
                            <div class = "item" value = "每周抓取" data-value = "每周抓取">每周抓取</div>
                            <div class = "item" value = "每月抓取" data-value = "每月抓取">每月抓取</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "" style = "width:70px;" ng-model = "config.time">
                            <span>次</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取时间设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">平均分配时间</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">平均分配时间</div>
                            <div class = "item" data-value = "0">自定义时间</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <div class = "ui toggle red checkbox openMonitor mt10">
                    <input type = "checkbox" id = "checkInput3" tabindex = "0" class = "hidden" ng-model = "config.switch">
                    <label for = "checkInput3" style = "cursor: pointer;">开启价格监控</label>
                </div>
            </div>
        </form>
    </div>

    <!--4.店铺监控-->
    <div ng-if = "config.index==4" class = "clearfix p15">
        <form class = "ui form bc perW50">
            <div class = "field">
                <label>产品型号</label>
                <div class = "mt10">
                    <input type = "text" name = "first-name" placeholder = "产品型号" ng-model = "config.model">
                </div>
            </div>
            <div class = "field">
                <label>标题关键字</label>
                <div class = "mt10">
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.keywords[0]">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.keywords[1]">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.keywords[2]">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>排除关键字</label>
                <div class = "mt10">
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.delkeywords[0]">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "关键字" style = "width:135px;" ng-model = "config.delkeywords[1]">
                        </div>
                    </div>
                </div>
            </div>
            <!--common-->
            <div class = "field">
                <label>价格设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">标准价格区间</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">价格下限</div>
                            <div class = "item" data-value = "0">价格上限</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "价格下限" style = "width:135px;" ng-model = "config.price_low">
                        </div>
                        <div class = "field">
                            <input type = "text" placeholder = "价格上限" style = "width:135px;" ng-model = "config.price_hig">
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取频率设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">每天抓取</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">每周抓取</div>
                            <div class = "item" data-value = "0">每月抓取</div>
                        </div>
                    </div>
                    <div class = "inline fields">
                        <div class = "field">
                            <input type = "text" placeholder = "" style = "width:70px;" ng-model = "config.time">
                            <span>次</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <label>抓取时间设置</label>
                <div class = "mt10">
                    <div class = "ui selection dropdown fl mr10" style = "min-width: 9em;padding: .38571429em 2.6em .38571429em 1em;">
                        <input type = "hidden" name = "gender">
                        <i class = "dropdown icon"></i>
                        <div class = "default text">平均分配时间</div>
                        <div class = "menu">
                            <div class = "item" data-value = "1">平均分配时间</div>
                            <div class = "item" data-value = "0">自定义时间</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class = "field">
                <div class = "ui toggle red checkbox openMonitor mt10">
                    <input type = "checkbox" id = "checkInput4" tabindex = "0" class = "hidden" ng-model = "config.switch">
                    <label for = "checkInput4" style = "cursor: pointer;">开启价格监控</label>
                </div>
            </div>
        </form>
    </div>

    <div class = "bc perW50 red lh150 f14 p10" ng-show = "msg!=null">{{msg}}</div>

    <!--btn-->
    <div class = "actions">
        <div class = "ui default deny button">
            取消
        </div>
        <div class = "ui green right labeled icon button" ng-click = "ok()">
            <span>确定添加</span>
            <i class = "checkmark icon"></i>
        </div>
    </div>
</div>